package com.tanhua.server.config;


import com.alibaba.nacos.api.config.annotation.NacosConfigurationProperties;
import com.tanhua.dubbo.pojo.RecommendUser;
import lombok.Data;
import org.springframework.context.annotation.Configuration;

import java.util.List;

@Configuration
//从nacos配置中心读取内容，并且支持自动刷新功能
@NacosConfigurationProperties(dataId = "default.properties", prefix = "tanhua.default", autoRefreshed = true)
@Data
public class DefaultConfig {

    private Long user;
    private List<Long> userList;
    //private List<RecommendUser> recommendUserList;
    //private RecommendUser[] recommendUsers;

}


